package com.xuecheng.content;


import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients(basePackages = {"com.xuecheng.content.agent"}) // 开启feign远程调用
@RefreshScope // 开启动态刷新
@EnableSwagger2Doc // 开启swagger
@EnableDiscoveryClient // 开启nacos注册中心
//开启全局异常处理器
@SpringBootApplication(scanBasePackages = {"com.xuecheng.common.exception","com.xuecheng.content"})
public class ContentApplication {
	public static void main(String[] args) {
		SpringApplication.run(ContentApplication.class, args);
	}
}